import {
  HTTP
} from "../utils/http-p.js"

class LoginModel extends HTTP{
   login(code){
     return this.request({
       url:`user/login`,
       data:{
         code
       }
     })
   }

  authorization(data){
    return this.request({
      method: 'POST',
      data,
      url: `user/authorization`
    })
  }
}

export {
  LoginModel
}